<?php
class Logoperation extends CActiveRecord {
	public static function model($className = __CLASS__) {
		parent::model ( $className );
	}
	public function tableName() {
		return '{{log_operation}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				"id,logid", 
				"required", 
				'message' => '不能为空' 
			), 
			array (
				
				'operationtype,primarykeyvalue,content,url,createuser,createtime', 
				'safe' 
			)
		);
	
	}
	//	public function relations() {
	//		return array (
	//		 
	//		
	//		);
	//	}
	public function attributeLabels() {
		return array (
			
			"id" => "id", 
			"logid" => "logid", 
			"operationtype" => "operationtype", 
			"primarykeyvalue" => "primarykeyvalue", 
			"content" => "content", 
			"url" => "url", 
			"createuser" => "createuser", 
			"createtime" => "createtime" 
		);
	}

}
?>